<?php  
namespace app\admin\controller;
// use think\Controller;
class User extends Base{
	public function user_list(){
		$arr=db('user')->paginate(5);
		return view('',['arr'=>$arr]);
	}
	public function user_forbid(){
		$_GET['limit']='no';
		if(db('user')->update($_GET)){
			$this->success('禁止成功','user_list');
		}else{
			$this->error('禁止失败','user_list');
		}
	}
	public function user_recover(){
		$_GET['limit']='yes';
		if(db('user')->update($_GET)){
			$this->success('恢复成功','user_list');
		}else{
			$this->error('恢复失败','user_list');
		}
	}
}
